#include <ledParamTables.h>
/* Efficiency is 1024 @25C , the value is 990*1024/1000 when efficiency is 99.0% */ 
static const TempParams_t TEMP_CURVE_TABLE_RED[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
    {/*0,*/   1139U, 29 , 1019U,1036U},
    {/*2,*/   1135U, 27 , 1019U,1035U},
    {/*4,*/   1131U, 24 , 1020U,1034U},
    {/*6,*/   1127U, 22 , 1020U,1033U},
    {/*8,*/   1116U, 19 , 1020U,1032U},
    {/*10,*/  1109U, 17 , 1021U,1031U},
    {/*12,*/  1099U, 14 , 1021U,1030U},
    {/*14,*/  1088U, 11 , 1022U,1029U},
    {/*16,*/  1085U, 10 , 1022U,1028U},
    {/*18,*/  1074U, 7  , 1023U,1027U},
    {/*20,*/  1052U, 5 ,  1023U,1026U},
    {/*22,*/  1042U, 2 ,  1023U,1025U},
    {/*24,*/  1024U, 0 ,  1024U,1024U},
    {/*26,*/  1012U,  -3 ,1024U,1023U},
    {/*28,*/  1001U,  -5, 1025U,1022U},
    {/*30,*/  990U,  -7,  1025U,1021U},
    {/*32,*/  978U,  -10, 1026U,1020U},
    {/*34,*/  966U,  -12, 1026U,1019U},
    {/*36,*/  952U,  -15, 1026U,1018U},
    {/*38,*/  940U,  -17, 1027U,1017U},
    {/*40,*/  927U,  -20, 1027U,1017U},
    {/*42,*/  916U,  -22, 1028U,1016U},
    {/*44,*/  902U,  -25, 1028U,1015U},
    {/*46,*/  890U,  -27, 1028U,1014U},
    {/*48,*/  876U,  -30, 1029U,1013U},
    {/*50,*/  863U,  -32, 1029U,1012U},
    {/*52,*/  850U,  -35, 1029U,1011U},
    {/*54,*/  836U,  -37, 1030U,1011U},
    {/*56,*/  824U,  -39, 1030U,1010U},
    {/*58,*/  810U,  -42, 1031U,1009U},
    {/*60,*/  795U,  -44, 1031U,1008U},
    {/*62,*/  782U,  -47, 1031U,1007U},
    {/*64,*/  767U,  -50, 1032U,1007U},
    {/*66,*/  754U,  -52, 1032U,1006U},
    {/*68,*/  741U,  -54, 1032U,1005U},
    {/*70,*/  728U,  -57, 1033U,1005U},
    {/*72,*/  714U,  -60, 1033U,1004U},
    {/*74,*/  702U,  -62, 1033U,1003U},
    {/*76,*/  686U,  -64, 1033U,1002U},
    {/*78,*/  673U,  -67, 1034U,1002U},
    {/*80,*/  659U,  -70, 1034U,1001U},  
    {/*82,*/  645U,  -72, 1034U,1000U},/*51 */
    {/*84,*/  631U,  -75, 1035U,1000U},
    {/*86,*/  617U,  -77, 1035U,999U},
    {/*88,*/  602U,  -80, 1035U,998U},
    {/*90,*/  589U,  -82, 1036U,998U},
    {/*92,*/  575U,  -85, 1036U,997U},
    {/*94,*/  561U,  -87, 1036U,996U},
    {/*96,*/  547U,  -90, 1036U,996U},
    {/*98,*/  533U,  -93, 1037U,995U},
    {/*100,*/ 520U,  -95, 1037U,995U},
    {/*102,*/ 520U,  -97, 1037U,995U},
    {/*104,*/ 520U,  -100, 1037U,995U},
    {/*106,*/ 520U,  -102, 1037U,995U},
    {/*108,*/ 520U,  -105, 1037U,995U},
    {/*110,*/ 520U,  -107, 1037U,995U},
    {/*112,*/ 520U,  -110, 1037U,995U},
    {/*114,*/ 520U,  -112, 1037U,995U},
    {/*116,*/ 520U,  -115, 1037U,995U},
    {/*118,*/ 520U,  -117, 1037U,995U},
    {/*120,*/ 520U,  -120, 1037U,995U},
};

static const TempParams_t TEMP_CURVE_TABLE_GREEN[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
    {/*0,  */ 1105U, 61  ,981U,1031U},
    {/*2,  */ 1094U, 56  ,984U,1030U},
    {/*4,  */ 1085U, 51  ,987U,1030U},
    {/*6,  */ 1079U, 46  ,990U,1029U},
    {/*8,  */ 1071U, 41  ,992U,1029U},
    {/*10, */ 1065U, 35  ,995U,1029U},
    {/*12, */ 1064U, 30  ,997U,1028U},
    {/*14, */ 1062U, 25  ,1000U,1028U},
    {/*16, */ 1059U, 21  ,1002U,1027U},
    {/*18, */ 1049U, 16  ,1006U,1027U},
    {/*20, */ 1025U, 11  ,1018U,1025U},
    {/*22, */ 1025U, 5   ,1022U,1024U},
    {/*24, */ 1024U, 0   ,1024U,1024U},
    {/*26, */ 1025U,  -4 ,1027U,1023U},
    {/*28, */ 1024U,  -10,1030U,1023U},
    {/*30, */ 1022U,  -15,1032U,1023U},
    {/*32, */ 1021U,  -21,1034U,1022U},
    {/*34, */ 1021U,  -26,1037U,1022U},
    {/*36, */ 1019U,  -32,1041U,1021U},
    {/*38, */ 1018U,  -37,1043U,1021U},
    {/*40, */ 1016U,  -43,1047U,1021U},
    {/*42, */ 1015U,  -47,1049U,1020U},
    {/*44, */ 1013U,  -53,1053U,1020U},
    {/*46, */ 1013U,  -59,1054U,1019U},
    {/*48, */ 1011U,  -65,1058U,1019U},
    {/*50, */ 1010U,  -70,1061U,1018U},
    {/*52, */ 1009U,  -75,1064U,1018U},
    {/*54, */ 1007U,  -81,1068U,1017U},
    {/*56, */ 1006U,  -87,1071U,1017U},
    {/*58, */ 1005U,  -92,1075U,1016U},
    {/*60, */ 1003U,  -99,1077U,1016U},
    {/*62, */ 1002U,  -104,1081U,1015U},
    {/*64, */ 1001U,  -110,1084U,1015U},
    {/*66, */ 999U,  -115,1087U,1014U},
    {/*68, */ 997U,  -121,1091U,1013U},
    {/*70, */ 995U,  -127,1096U,1013U},
    {/*72, */ 995U,  -132,1099U,1012U},
    {/*74, */ 994U,  -137,1102U,1012U},
    {/*76, */ 992U,  -144,1105U,1011U},
    {/*78, */ 990U,  -149,1109U,1011U},
    {/*80, */ 989U,  -155,1112U,1010U},
    {/*82, */ 986U,  -161,1116U,1010U},
    {/*84, */ 986U,  -166,1119U,1009U},
    {/*86, */ 983U,  -173,1123U,1008U},
    {/*88, */ 981U,  -178,1126U,1008U},
    {/*90, */ 980U,  -183,1130U,1007U},
    {/*92, */ 979U,  -189,1133U,1006U},
    {/*94, */ 979U,  -194,1138U,1006U},
    {/*96, */ 975U,  -201,1140U,1005U},
    {/*98, */ 973U,  -206,1145U,1004U},
    {/*100,*/ 972U,  -212,1149U,1004U},
    {/*102,*/ 972U,  -212,1149U,1004U},
    {/*104,*/ 972U,  -217,1149U,1004U},
    {/*106,*/ 972U,  -222,1149U,1004U},
    {/*108,*/ 972U,  -227,1149U,1004U},
    {/*110,*/ 972U,  -232,1149U,1004U},
    {/*112,*/ 972U,  -237,1149U,1004U},
    {/*114,*/ 972U,  -242,1149U,1004U},
    {/*116,*/ 972U,  -247,1149U,1004U},
    {/*118,*/ 972U,  -252,1149U,1004U},
    {/*120,*/ 972U,  -257,1149U,1004U},
};

static const TempParams_t TEMP_CURVE_TABLE_BLUE[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
    {/*0,  */ 1016U,  28  ,1036U,980U},
    {/*2,  */ 1029U,  25  ,1036U,980U},
    {/*4,  */ 1033U,  23  ,1037U,988U},
    {/*6,  */ 1033U,  20  ,1035U,990U},
    {/*8,  */ 1039U,  18  ,1034U,993U},
    {/*10, */ 1024U,  16  ,1032U,992U},
    {/*12, */ 1027U,  13  ,1030U,995U},
    {/*14, */ 1032U,  11 ,1030U,1002U},
    {/*16, */ 1032U,  9  ,1028U,1003U},
    {/*18, */ 1032U, 7   ,1027U,1006U},
    {/*20, */ 1021U, 5   ,1027U,1018U},
    {/*22, */ 1025U, 2   ,1026U,1023U},
    {/*24, */ 1024U, 0   ,1024U,1024U},
    {/*26, */ 1028U, -3  ,1023U,1029U},
    {/*28, */ 1029U, -5  ,1022U,1031U},
    {/*30, */ 1033U, -7  ,1022U,1038U},
    {/*32, */ 1035U, -10 ,1022U,1041U},
    {/*34, */ 1036U, -12 ,1019U,1045U},
    {/*36, */ 1040U, -15 ,1018U,1051U},
    {/*38, */ 1041U, -17 ,1018U,1053U},
    {/*40, */ 1043U, -20 ,1016U,1058U},
    {/*42, */ 1044U, -22 ,1015U,1062U},
    {/*44, */ 1048U, -25 ,1014U,1067U},
    {/*46, */ 1049U, -27 ,1012U,1072U},
    {/*48, */ 1051U, -30 ,1012U,1077U},
    {/*50, */ 1053U, -33 ,1011U,1082U},
    {/*52, */ 1055U, -35 ,1009U,1085U},
    {/*54, */ 1062U, -37 ,1012U,1104U},
    {/*56, */ 1064U, -40 ,1011U,1109U},
    {/*58, */ 1066U, -42 ,1011U,1114U},
    {/*60, */ 1067U, -45 ,1008U,1117U},
    {/*62, */ 1068U, -48 ,1008U,1122U},
    {/*64, */ 1070U, -50 ,1006U,1130U},
    {/*66, */ 1072U, -52 ,1005U,1132U},
    {/*68, */ 1075U, -55 ,1005U,1139U},
    {/*70, */ 1076U, -57 ,1002U,1144U},
    {/*72, */ 1079U, -60 ,1002U,1150U},
    {/*74, */ 1079U, -62 ,1001U,1154U},
    {/*76, */ 1083U, -65 ,999U,1160U},
    {/*78, */ 1083U, -67 ,998U,1166U},
    {/*80, */ 1086U, -70 ,995U,1171U},
    {/*82, */ 1087U, -72 ,995U,1177U},
    {/*84, */ 1088U, -75 ,995U,1182U},
    {/*86, */ 1091U, -78 ,993U,1189U},
    {/*88, */ 1094U, -80 ,991U,1195U},
    {/*90, */ 1096U, -82 ,991U,1202U},
    {/*92, */ 1096U, -84 ,989U,1206U},
    {/*94, */ 1100U, -87 ,988U,1213U},
    {/*96, */ 1104U, -90 ,987U,1222U},
    {/*98, */ 1104U, -92 ,985U,1225U},
    {/*100,*/ 1108U, -94 ,984U,1234U},
    {/*102,*/ 1108U, -92 ,984U,1234U},
    {/*104,*/ 1108U, -94 ,984U,1234U},
    {/*106,*/ 1108U, -96 ,984U,1234U},
    {/*108,*/ 1108U, -98 ,984U,1234U},
    {/*110,*/ 1108U, -100 ,984U,1234U},
    {/*112,*/ 1108U, -102 ,984U,1234U},
    {/*114,*/ 1108U, -104 ,984U,1234U},
    {/*116,*/ 1108U, -106 ,984U,1234U},
    {/*118,*/ 1108U, -108 ,984U,1234U},
    {/*120,*/ 1108U, -110 ,984U,1234U},
    
};


TempParams_t const * LP_GetTempTableRed(void)
{
    return TEMP_CURVE_TABLE_RED;
}

TempParams_t const * LP_GetTempTableGreen(void)
{
    return TEMP_CURVE_TABLE_GREEN;
}

TempParams_t const * LP_GetTempTableBlue(void)
{
    return TEMP_CURVE_TABLE_BLUE;
}




